package com.alks.function.data.vo.biocontrol.deptwork;

import com.alks.function.data.dto.biocontrol.deptwork.ProdStaticDto;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author MS
 * @since 2024/8/9下午5:58
 */
@Data
public class ProdStaticVo {
    private int orderQty;
    private int rawMaterialCount;
    private int rawMaterialFinish;
    private int shoelaceCount;
    private int shoelaceFinish;
    private int cutCount;
    private int cutFinish;
    private int craftCount;
    private int craftFinish;
    private int matchCount;
    private int matchFinish;
    private int stitchCount;
    private int stitchFinish;
    private int outSoleCount;
    private int outSoleFinish;
    private int insoleCount;
    private int insoleFinish;
    private int finishCount;
    private int finishFinish;
    private static final long serialVersionUID = 1L;

    public List<ProdStaticDto> change2Vertical() {
        List<ProdStaticDto> list = new ArrayList();
        ProdStaticDto ver = new ProdStaticDto();
        ver.setTitle("原材料");
        ver.setOrderQty(this.orderQty);
        ver.setFinishQty(this.rawMaterialFinish);
        ver.setUnfinishCount(this.rawMaterialCount);
        ver.setType("rawMaterial");
        list.add(ver);
        ver = new ProdStaticDto();
        ver.setTitle("鞋带");
        ver.setOrderQty(this.orderQty);
        ver.setFinishQty(this.shoelaceFinish);
        ver.setUnfinishCount(this.shoelaceCount);
        ver.setType("shoelace");
        list.add(ver);
        ver = new ProdStaticDto();
        ver.setTitle("冲裁");
        ver.setOrderQty(this.orderQty);
        ver.setFinishQty(this.cutFinish);
        ver.setUnfinishCount(this.cutCount);
        ver.setType("cut");
        list.add(ver);
        ver = new ProdStaticDto();
        ver.setTitle("工艺");
        ver.setOrderQty(this.orderQty);
        ver.setFinishQty(this.craftFinish);
        ver.setUnfinishCount(this.craftCount);
        ver.setType("craft");
        list.add(ver);
        ver = new ProdStaticDto();
        ver.setTitle("配套");
        ver.setOrderQty(this.orderQty);
        ver.setFinishQty(this.matchFinish);
        ver.setUnfinishCount(this.matchCount);
        ver.setType("match");
        list.add(ver);
        ver = new ProdStaticDto();
        ver.setTitle("针车");
        ver.setOrderQty(this.orderQty);
        ver.setFinishQty(this.stitchFinish);
        ver.setUnfinishCount(this.stitchCount);
        ver.setType("stitch");
        list.add(ver);
        ver = new ProdStaticDto();
        ver.setTitle("大底");
        ver.setOrderQty(this.orderQty);
        ver.setFinishQty(this.outSoleFinish);
        ver.setUnfinishCount(this.outSoleCount);
        ver.setType("outSole");
        list.add(ver);
        ver = new ProdStaticDto();
        ver.setTitle("鞋垫");
        ver.setOrderQty(this.orderQty);
        ver.setFinishQty(this.insoleFinish);
        ver.setUnfinishCount(this.insoleCount);
        ver.setType("inSole");
        list.add(ver);
        ver = new ProdStaticDto();
        ver.setTitle("成型");
        ver.setOrderQty(this.orderQty);
        ver.setFinishQty(this.finishFinish);
        ver.setUnfinishCount(this.finishCount);
        ver.setType("finish");
        list.add(ver);
        return list;
    }
}
